package com.thinkit.bigdata.web.model.sys;

import java.util.ArrayList;
import java.util.List;

public class SysApprovalConfigRelExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SysApprovalConfigRelExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andNumberIsNull() {
            addCriterion("number is null");
            return (Criteria) this;
        }

        public Criteria andNumberIsNotNull() {
            addCriterion("number is not null");
            return (Criteria) this;
        }

        public Criteria andNumberEqualTo(Integer value) {
            addCriterion("number =", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotEqualTo(Integer value) {
            addCriterion("number <>", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberGreaterThan(Integer value) {
            addCriterion("number >", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("number >=", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberLessThan(Integer value) {
            addCriterion("number <", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberLessThanOrEqualTo(Integer value) {
            addCriterion("number <=", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberIn(List<Integer> values) {
            addCriterion("number in", values, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotIn(List<Integer> values) {
            addCriterion("number not in", values, "number");
            return (Criteria) this;
        }

        public Criteria andNumberBetween(Integer value1, Integer value2) {
            addCriterion("number between", value1, value2, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("number not between", value1, value2, "number");
            return (Criteria) this;
        }

        public Criteria andApproleidIsNull() {
            addCriterion("appRoleId is null");
            return (Criteria) this;
        }

        public Criteria andApproleidIsNotNull() {
            addCriterion("appRoleId is not null");
            return (Criteria) this;
        }

        public Criteria andApproleidEqualTo(Long value) {
            addCriterion("appRoleId =", value, "approleid");
            return (Criteria) this;
        }

        public Criteria andApproleidNotEqualTo(Long value) {
            addCriterion("appRoleId <>", value, "approleid");
            return (Criteria) this;
        }

        public Criteria andApproleidGreaterThan(Long value) {
            addCriterion("appRoleId >", value, "approleid");
            return (Criteria) this;
        }

        public Criteria andApproleidGreaterThanOrEqualTo(Long value) {
            addCriterion("appRoleId >=", value, "approleid");
            return (Criteria) this;
        }

        public Criteria andApproleidLessThan(Long value) {
            addCriterion("appRoleId <", value, "approleid");
            return (Criteria) this;
        }

        public Criteria andApproleidLessThanOrEqualTo(Long value) {
            addCriterion("appRoleId <=", value, "approleid");
            return (Criteria) this;
        }

        public Criteria andApproleidIn(List<Long> values) {
            addCriterion("appRoleId in", values, "approleid");
            return (Criteria) this;
        }

        public Criteria andApproleidNotIn(List<Long> values) {
            addCriterion("appRoleId not in", values, "approleid");
            return (Criteria) this;
        }

        public Criteria andApproleidBetween(Long value1, Long value2) {
            addCriterion("appRoleId between", value1, value2, "approleid");
            return (Criteria) this;
        }

        public Criteria andApproleidNotBetween(Long value1, Long value2) {
            addCriterion("appRoleId not between", value1, value2, "approleid");
            return (Criteria) this;
        }

        public Criteria andApproleIsNull() {
            addCriterion("appRole is null");
            return (Criteria) this;
        }

        public Criteria andApproleIsNotNull() {
            addCriterion("appRole is not null");
            return (Criteria) this;
        }

        public Criteria andApproleEqualTo(String value) {
            addCriterion("appRole =", value, "approle");
            return (Criteria) this;
        }

        public Criteria andApproleNotEqualTo(String value) {
            addCriterion("appRole <>", value, "approle");
            return (Criteria) this;
        }

        public Criteria andApproleGreaterThan(String value) {
            addCriterion("appRole >", value, "approle");
            return (Criteria) this;
        }

        public Criteria andApproleGreaterThanOrEqualTo(String value) {
            addCriterion("appRole >=", value, "approle");
            return (Criteria) this;
        }

        public Criteria andApproleLessThan(String value) {
            addCriterion("appRole <", value, "approle");
            return (Criteria) this;
        }

        public Criteria andApproleLessThanOrEqualTo(String value) {
            addCriterion("appRole <=", value, "approle");
            return (Criteria) this;
        }

        public Criteria andApproleLike(String value) {
            addCriterion("appRole like", value, "approle");
            return (Criteria) this;
        }

        public Criteria andApproleNotLike(String value) {
            addCriterion("appRole not like", value, "approle");
            return (Criteria) this;
        }

        public Criteria andApproleIn(List<String> values) {
            addCriterion("appRole in", values, "approle");
            return (Criteria) this;
        }

        public Criteria andApproleNotIn(List<String> values) {
            addCriterion("appRole not in", values, "approle");
            return (Criteria) this;
        }

        public Criteria andApproleBetween(String value1, String value2) {
            addCriterion("appRole between", value1, value2, "approle");
            return (Criteria) this;
        }

        public Criteria andApproleNotBetween(String value1, String value2) {
            addCriterion("appRole not between", value1, value2, "approle");
            return (Criteria) this;
        }

        public Criteria andSameprovinceIsNull() {
            addCriterion("sameProvince is null");
            return (Criteria) this;
        }

        public Criteria andSameprovinceIsNotNull() {
            addCriterion("sameProvince is not null");
            return (Criteria) this;
        }

        public Criteria andSameprovinceEqualTo(Integer value) {
            addCriterion("sameProvince =", value, "sameprovince");
            return (Criteria) this;
        }

        public Criteria andSameprovinceNotEqualTo(Integer value) {
            addCriterion("sameProvince <>", value, "sameprovince");
            return (Criteria) this;
        }

        public Criteria andSameprovinceGreaterThan(Integer value) {
            addCriterion("sameProvince >", value, "sameprovince");
            return (Criteria) this;
        }

        public Criteria andSameprovinceGreaterThanOrEqualTo(Integer value) {
            addCriterion("sameProvince >=", value, "sameprovince");
            return (Criteria) this;
        }

        public Criteria andSameprovinceLessThan(Integer value) {
            addCriterion("sameProvince <", value, "sameprovince");
            return (Criteria) this;
        }

        public Criteria andSameprovinceLessThanOrEqualTo(Integer value) {
            addCriterion("sameProvince <=", value, "sameprovince");
            return (Criteria) this;
        }

        public Criteria andSameprovinceIn(List<Integer> values) {
            addCriterion("sameProvince in", values, "sameprovince");
            return (Criteria) this;
        }

        public Criteria andSameprovinceNotIn(List<Integer> values) {
            addCriterion("sameProvince not in", values, "sameprovince");
            return (Criteria) this;
        }

        public Criteria andSameprovinceBetween(Integer value1, Integer value2) {
            addCriterion("sameProvince between", value1, value2, "sameprovince");
            return (Criteria) this;
        }

        public Criteria andSameprovinceNotBetween(Integer value1, Integer value2) {
            addCriterion("sameProvince not between", value1, value2, "sameprovince");
            return (Criteria) this;
        }

        public Criteria andIslastIsNull() {
            addCriterion("isLast is null");
            return (Criteria) this;
        }

        public Criteria andIslastIsNotNull() {
            addCriterion("isLast is not null");
            return (Criteria) this;
        }

        public Criteria andIslastEqualTo(Integer value) {
            addCriterion("isLast =", value, "islast");
            return (Criteria) this;
        }

        public Criteria andIslastNotEqualTo(Integer value) {
            addCriterion("isLast <>", value, "islast");
            return (Criteria) this;
        }

        public Criteria andIslastGreaterThan(Integer value) {
            addCriterion("isLast >", value, "islast");
            return (Criteria) this;
        }

        public Criteria andIslastGreaterThanOrEqualTo(Integer value) {
            addCriterion("isLast >=", value, "islast");
            return (Criteria) this;
        }

        public Criteria andIslastLessThan(Integer value) {
            addCriterion("isLast <", value, "islast");
            return (Criteria) this;
        }

        public Criteria andIslastLessThanOrEqualTo(Integer value) {
            addCriterion("isLast <=", value, "islast");
            return (Criteria) this;
        }

        public Criteria andIslastIn(List<Integer> values) {
            addCriterion("isLast in", values, "islast");
            return (Criteria) this;
        }

        public Criteria andIslastNotIn(List<Integer> values) {
            addCriterion("isLast not in", values, "islast");
            return (Criteria) this;
        }

        public Criteria andIslastBetween(Integer value1, Integer value2) {
            addCriterion("isLast between", value1, value2, "islast");
            return (Criteria) this;
        }

        public Criteria andIslastNotBetween(Integer value1, Integer value2) {
            addCriterion("isLast not between", value1, value2, "islast");
            return (Criteria) this;
        }

        public Criteria andAppconfigidIsNull() {
            addCriterion("appConfigId is null");
            return (Criteria) this;
        }

        public Criteria andAppconfigidIsNotNull() {
            addCriterion("appConfigId is not null");
            return (Criteria) this;
        }

        public Criteria andAppconfigidEqualTo(Long value) {
            addCriterion("appConfigId =", value, "appconfigid");
            return (Criteria) this;
        }

        public Criteria andAppconfigidNotEqualTo(Long value) {
            addCriterion("appConfigId <>", value, "appconfigid");
            return (Criteria) this;
        }

        public Criteria andAppconfigidGreaterThan(Long value) {
            addCriterion("appConfigId >", value, "appconfigid");
            return (Criteria) this;
        }

        public Criteria andAppconfigidGreaterThanOrEqualTo(Long value) {
            addCriterion("appConfigId >=", value, "appconfigid");
            return (Criteria) this;
        }

        public Criteria andAppconfigidLessThan(Long value) {
            addCriterion("appConfigId <", value, "appconfigid");
            return (Criteria) this;
        }

        public Criteria andAppconfigidLessThanOrEqualTo(Long value) {
            addCriterion("appConfigId <=", value, "appconfigid");
            return (Criteria) this;
        }

        public Criteria andAppconfigidIn(List<Long> values) {
            addCriterion("appConfigId in", values, "appconfigid");
            return (Criteria) this;
        }

        public Criteria andAppconfigidNotIn(List<Long> values) {
            addCriterion("appConfigId not in", values, "appconfigid");
            return (Criteria) this;
        }

        public Criteria andAppconfigidBetween(Long value1, Long value2) {
            addCriterion("appConfigId between", value1, value2, "appconfigid");
            return (Criteria) this;
        }

        public Criteria andAppconfigidNotBetween(Long value1, Long value2) {
            addCriterion("appConfigId not between", value1, value2, "appconfigid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}